<div class="view">

    <div class="post">
        <h2 class="posttitle">
            <?php echo CHtml::link($data->headline, array('article', 'id' => $data->id)) ; ?>
        </h2>
        <span class="entry-utility">
            <span class="entry-utility2">
                <span class="userdate"><?php echo CHtml::encode(substr($data->create_time, 0, 10)); ?>   |   Post by: <a href="#"><?php echo CHtml::encode($data->author->username); ?></a>
                  | &nbsp;Chuyên mục: <?php echo CHtml::link(CHtml::encode($data->topic->name), array("/site/blog/id/" . $data->topic->id) ); ?>
                  &nbsp;
                </span>
<!--                <span class="comment"><a href="#"> 5 comments</a></span>-->
                <span>
                    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo CHtml::encode(Yii::app()->createAbsoluteUrl('/site/article/', array('id'=>$data->id))); ?>"
                         scrolling="no" frameborder="0"
                            style="border:none; width:300px; height:25px">
                    </iframe>
                </span>
            </span>
        </span>
        <?php echo CHtml::image(Yii::app()->theme->baseUrl . "/images/content/post2.jpg", "", array("class" => "alignnone")); ?>
    <!--        <img src="images/content/post1.jpg" alt="" class="alignnone" />-->
            <div class="entry-content">
                <p><?php echo substr($data->body, 0  , 200) . " ... "; ?></p>

                <?php echo CHtml::link("Đọc tiếp ...", array('article', 'id' => $data->id), array("class" => "more")); ?>
            <!--            <a href="single.html" class="more">Continue Reading</a>-->
        </div>
    </div>

</div>

